package com.machinecontroller.model;

/**
 * Created by zhangxuehui on 2017/12/21.
 */
public class ManagerModel {
    private int id;
    private String name;
    private String content;
    private boolean isInput;

    public ManagerModel(Builder builder) {
        this.id = builder.id;
        this.name = builder.name;
        this.content = builder.content;
        this.isInput = builder.isInput;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getContent() {
        return content;
    }

    public boolean isInput() {
        return isInput;
    }

    public static class Builder {
        private int id;
        private String name;
        private String content;
        private boolean isInput;

        public Builder setId(int id) {
            this.id = id;
            return this;
        }

        public Builder setName(String name) {
            this.name = name;
            return this;
        }

        public Builder setContent(String content) {
            this.content = content;
            return this;
        }

        public Builder setInput(boolean input) {
            isInput = input;
            return this;
        }

        public ManagerModel build() {
            return new ManagerModel(this);
        }
    }


}
